package com.lhl.type1;

/**
 * 具体处理器
 * @author hanLin.liu
 * @create 2024-10-10 17:36
 */
public class ConcreteHandler1 extends AbstractHandler{

    @Override
    public void handle(int request) {
        if(request < 10){
            System.out.println("处理器1处理了");
        }else if(nextHandler != null) {
            System.out.println("处理器1不能处理，交给2");
            nextHandler.handle(request);
        }
    }
}
